import request from '@/utils/request'

export const getRoleListApi = (params) => request('sys/role', { params })

export const addRole = (data) => request({ url: '/sys/role', method: 'post', data })

export const delRole = (id) => request.delete(`/sys/role/${id}`)

export const updateRole = (data) => request.put(`/sys/role/${data.id}`, data)
